<?php
class GroupsController extends AppController {

	var $name = 'Groups';

	function index() {
		$this->Group->recursive = 0;
		$this->set('groups', $this->paginate());
	}

	function view($id = null) {
		if (!$id) {
			$this->flash(__('Invalid group', true), array('action' => 'index'));
		}
		$this->set('group', $this->Group->read(null, $id));
	}

}
?>